package com.wanmait.houlang.mapper;

import com.wanmait.houlang.pojo.DTO;
import com.wanmait.houlang.pojo.Professional;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ProfessionalMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Professional record);

    int insertSelective(@Param("dto") DTO dto);

    Professional selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Professional record);

    int updateByPrimaryKey(Professional record);

    List<Professional> findAll();

    List<Professional> findBySchoolId(Integer id);

    List<Professional> findBachelorPro();
    Professional major(Integer id);

    List<Professional> findJuniorPro();

}